﻿@model MovieReview.DataModels.Movie
@{
    ViewBag.Title = "Edit";
}

<h2>Edit Movie Information</h2>

<form method="post">
    Movie Title:<input type="text" name="title" value="@Model.Title" /><br />
    Image URL:<input type="text" name="image" value="@Model.Image" /><br />
    Rating:<select name="rating">
        @if (@Model.Rating == 1)
        {
            <option value="1" selected>&#9733&#9734&#9734&#9734&#9734</option>
        }
        else
        {
            <option value="1">&#9733&#9734&#9734&#9734&#9734</option>
        }
        @if (Model.Rating == 2)
        {
            <option value="2" selected>&#9733&#9733&#9734&#9734&#9734</option>
        }
        else
        {
            <option value="2">&#9733&#9733&#9734&#9734&#9734</option>
        }
        @if (Model.Rating == 3)
        {
            <option value="3" selected>&#9733&#9733&#9733&#9734&#9734</option>
        }
        else
        {
            <option value="3">&#9733&#9733&#9733&#9734&#9734</option>
        }
        @if (Model.Rating == 4)
        {
            <option value="4" selected>&#9733&#9733&#9733&#9733&#9734</option>
        }
        else
        {
            <option value="4">&#9733&#9733&#9733&#9733&#9734</option>
        }
        @if (Model.Rating == 5)
        {
            <option value="5" selected>&#9733&#9733&#9733&#9733&#9733</option>
        }
        else
        {
            <option value="5">&#9733&#9733&#9733&#9733&#9733</option>
        }
    </select>
    <input type="submit" class="btn btn-block" />
</form>